package local.blueheart.data.springdatademo.service;

import local.blueheart.data.springdatademo.domain.config.ApplicationDO;
import local.blueheart.data.springdatademo.domain.config.ArchiveSourceDO;
import local.blueheart.data.springdatademo.domain.config.ItemDO;
import local.blueheart.data.springdatademo.domain.config.ModuleDO;

import java.net.URL;
import java.util.List;

public interface XmlConfigService {

    void initConfig(URL configFileURL);

    String currentVersion();

    void clearAllConfig();

    void saveArchiveSourceConfig(ArchiveSourceDO archiveSourceDO);

    void saveApplicationConfig(ApplicationDO applicationDO);

    void saveModuleConfig(ModuleDO moduleDO);

    void saveItemConfig(ItemDO itemDO);

    List<ApplicationDO> getAllApplication();


}
